<div class="home_sidebar">
   <div class="box_sidebar">
      <div class="title_chose">Lựa chọn theo hãng</div>
      <div class="main_chose">
         <img src="/themes/img/hang.jpg" alt="Điện thoại" />
         <div class="mt_link_hang">
            <a href="/dien-thoai-apple-iphone/" style="width: 68px;height: 80px;"></a>
            <a href="/dien-thoai-samsung/" style="width: 116px;height: 80px;"></a>
            <a href="/dien-thoai-htc/" style="width: 82px;height: 80px;"></a>
            <a href="/dien-thoai-lg/" style="width: 96px;height: 80px;"></a>
            <a href="/dien-thoai-sony/" style="width: 112px;height: 68px;"></a>
            <a href="/dien-thoai-oppo/" style="width: 120px;height: 68px;"></a>
            <a href="/dien-thoai-lenovo/" style="width: 130px;height: 68px;"></a>
         </div>
      </div>
   </div>
   <div class="box_sidebar news_sidebar">
      <div class="title_box">Tin công nghệ</div>
      <?php
      $hot_news = db_first('SELECT new_id,new_title,new_alias,new_image,new_date FROM news WHERE new_active = 1 ORDER BY new_id DESC LIMIT 1');
      $list_hot_news = db_array('SELECT new_id,new_title,new_alias,new_image,new_date FROM news WHERE new_active = 1 ORDER BY new_id DESC LIMIT 1,4');
      ?>
         <div class="news_sidebar_hot">
            <a href="<?=url_news_detail($hot_news['new_alias'])?>"><img src="<?=img_link($hot_news['new_image'])?>" alt="<?=$hot_news['new_title']?>" /></a>
            <a href="<?=url_news_detail($hot_news['new_alias'])?>"><h3><?=$hot_news['new_title']?></h3></a>
         </div>
         <ul>
         <?
         foreach($list_hot_news as $news) {
            ?>
            <li>
               <a class="img" href="<?=url_news_detail($news['new_alias'])?>">
                  <img src="<?=img_link($news['new_image'],'small')?>" alt="<?=$news['new_title']?>" />
               </a>
               <a href="<?=url_news_detail($news['new_alias'])?>"><h3><?=$news['new_title']?></h3></a>
               <p><?=getTodayYesterdayString($news['new_date'])?></p>
            </li>
            <?
         }
         ?>
         </ul>
      <a class="link_box" href="/tin-tuc/">Xem tất cả tin tức &raquo;</a>
   </div>
   <div class="box_sidebar news_sidebar services_siderbar">
      <div class="title_box">Dịch vụ sửa chữa</div>
      <ul>
      <?php
      $list_hot_services = db_array('SELECT ser_id,ser_name,ser_alias,ser_image,ser_warranty FROM services WHERE ser_active = 1 ORDER BY ser_id DESC LIMIT 5');
      foreach($list_hot_services as $service) {
         ?>
         <li>
            <a class="img" href="<?=url_services_detail($service)?>">
               <img src="<?=img_link($service['ser_image'],'small')?>" alt="<?=$service['ser_name']?>" />
            </a>
            <a href="<?=url_services_detail($service)?>"><h3><?=$service['ser_name']?></h3></a>
            <p>Bảo hành: <?=$service['ser_warranty']?></p>
         </li>
         <?
      }
      ?>
      </ul>
      <a class="link_box" href="/dich-vu/">Xem tất cả dịch vụ</a>
   </div>
   
   <div class="box_sidebar product_sidebar">
      <div class="title_box">Sản phẩm nhiều người quan tâm</div>
      <ul class="tags">
      	<li class="tag3"><a href="http://maxmobile.vn/dien-thoai/samsung-galaxy-j-docomo.html" target="_blank" title="Galaxy J">Galaxy J</a></li>
      	<li class="tag3"><a href="
http://maxmobile.vn/dien-thoai/samsung-galaxy-note-3-docomo-nhat.html" target="_blank" title="Note 3 Docomo Nhật">Note 3 Docomo Nhật</a></li>
      	<li class="tag2"><a href="http://maxmobile.vn/dien-thoai/sony-xperia-zl2.html" target="_blank" title="Xperia ZL2">Xperia ZL2</a></li>
      	<li class="tag2"><a href="http://maxmobile.vn/dien-thoai/lg-g3-f400.html" target="_blank" title="LG G3 F400">LG G3 F400</a></li>
      	<li class="tag2"><a href="http://maxmobile.vn/dien-thoai/lg-g3-cat-6.html" target="_blank" title="LG G3 Cat 6">LG G3 Cat 6</a></li>
      	<li class="tag2"><a href="http://maxmobile.vn/dien-thoai/samsung-galaxy-s5-au.html" target="_blank" title="SamSung Galaxy S5 Au">SamSung Galaxy S5 Au</a></li>
      	<li class="tag1"><a href="http://maxmobile.vn/dien-thoai/samsung-galaxy-s5-docomo.html" target="_blank" title="Galaxy S5 Docomo">Galaxy S5 Docomo</a></li>
      	<li class="tag4"><a href="http://maxmobile.vn/dien-thoai/lg-g3-isai.html" target="_blank" title="LG G3 iSai">LG G3 iSai</a></li>
      	<li class="tag4"><a href="http://maxmobile.vn/dien-thoai/apple-iphone-6.html" target="_blank" title="iPhone 6">iPhone 6</a></li>
      	<li class="tag5"><a href="http://maxmobile.vn/dien-thoai/apple-iphone-6-plus.html" target="_blank" title="iPhone 6 Plus">iPhone 6 Plus</a></li>
      	<li class="tag5"><a href="http://maxmobile.vn/dien-thoai/htc-one-m7.html" target="_blank" title="HTC One M7">HTC One M7</a></li>
      	<li class="tag1"><a href="http://maxmobile.vn/dien-thoai/lg-g2-isai.html" target="_blank" title="LG G2 iSai">LG G2 iSai</a></li>
      	<li class="tag1"><a href="http://maxmobile.vn/dien-thoai/htc-one-m8-1.html" target="_blank" title="HTC ONE M8">HTC ONE M8</a></li>
      	<li class="tag1"><a href="http://maxmobile.vn/dien-thoai/sony-xperia-z1-au-full-box.html" target="_blank" title="Sony Xperia Z1 Au">Sony Xperia Z1 Au</a></li>
      	<li class="tag4"><a href="http://maxmobile.vn/dien-thoai/samsung-galaxy-note-4.html" target="_blank" title="Galaxy Note 4">Galaxy Note 4</a></li>
      	<li class="tag2"><a href="#iphone-6-plus-16gb" target="_blank">iPhone 6 Plus</a></li>
      	<li class="tag5"><a href="#htc-desire-616" target="_blank">HTC Desire 616</a></li>
      	<li class="tag1"><a href="#nokia-lumia-530" target="_blank">Lumia 530</a></li>
      	<li class="tag1"><a href="#htc-one-e8" target="_blank">HTC One E8</a></li>
      	<li class="tag3"><a href="#ios-8" target="_blank">iOS 8</a></li>
      	<li class="tag1"><a href="#smart-watch/apple-watch" target="_blank">Apple watch</a></li>
      </ul>
   </div>
</div>